package com.dnjn.mes.biz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dnjn.mes.biz.domain.MesRecordCapacity;
import com.dnjn.mes.biz.domain.MesWorkforceShift;

import java.time.LocalTime;
import java.util.List;

/**
 * <p>
 * 产能表 服务类
 * </p>
 *
 * @author Amber
 * @since 2023-07-26
 */
public interface IMesRecordCapacityService extends IService<MesRecordCapacity> {


    MesRecordCapacity lastCapacityRecord(Long equipmentId);

    List<MesRecordCapacity> getEarlyRecordCapacityChart(Long equipmentId);

    List<MesRecordCapacity> getNightRecordCapacityChart(Long equipmentId);

    Integer getUtilizationRate(Integer defaultBeat,Long equipmentId);

    int sumTodayRecordCapacity(Long equipmentId);

    List<MesRecordCapacity> getEarlyTrendsCapacityByTime(long equipmentId, LocalTime startTime, LocalTime endTime,String startLocalDateTime,String endLocalDateTime);

    List<MesRecordCapacity> countRecordCapacitys(String startTime, String endTime, long equipmentId);

}
